<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>

</head>
<body>
    
<div id="app" v-cloak>   
        <tree-department :value="value" :multiple="isMultiple"   v-on:input="input" ></tree-department>
        已选{{value}}
    </div>
    <script type="text/javascript">
        var app = new Vue({
            el: '#app',
            data: {
                isMultiple:true,//是否多选
                value:[100]//默认选中
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                input:function(value){
                    this.value=value;//获取到选择后的值
                }
            }
        });
    </script>
</body>

</html>